package org.meteorshower.employee_depart.util.enum_util;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.Getter;

@Getter
public enum SexEnum implements IEnum<Integer> {
    MALE(1),
    FEMALE(0);

    @EnumValue
    private final int sex;

    SexEnum(int sex) {
        this.sex = sex;
    }

    @Override
    public Integer getValue() {
        return sex;
    }
}
